<!DOCTYPE html>
<html style="
    height: 100%;" lang="en">
<head>
    <meta charset="UTF-8">
    <title>Admin</title>
    <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <script src="static/layui/layui.js"></script>
    <script type="text/javascript" src="static/js/tool_p.js"></script>
</head>
<body style="
    height: 100%;">
<div style="
    height: 100%;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;">
<form name="form1" method="post" action="" class="layui-form"  style="text-align:center">
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="70" height="50">token：</td>
            <td><input name="token" type="password" id="token" maxlength="16" class="layui-input"></td>
            <td colspan="200" align="center">
            <input name="button" type="button" class="layui-btn" value="登录" onclick="token_check()">
        </tr>
    </table>
</form>
</div>

<script>
document.onkeydown =cdk;
function cdk(){
    if(event.keyCode ==13){
        token_check();
    }
}
</script>
</body>
</html>